<?php
error_reporting (E_ALL & ~E_NOTICE);
include 'connect.php';
include 'apici.php';
include 'accentate.php';
$info = mysql_query ("Select * from info");
$info2 = mysql_fetch_array($info);
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	 <title><?php echo $info2['nome'] . ' ' . $info2['versione']; ?></title>
	<link rel="stylesheet" type="text/css" href="style.css" />
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
</head>
<body>
	<div id="header">
    	<img src="images/logo.png" id="logo">
        <ul id="navBar">
        	<li <?php if($page == 'bacheca') echo 'class="current"' ?>><a href="home.php?page=bacheca">Bacheca</a></li>
          <li <?php if($page == 'servizi') echo 'class="current"' ?>><a href="home.php?page=servizi">Servizi</a></li>
          <li <?php if($page == 'riunioni') echo 'class="current"' ?>><a href="home.php?page=riunioni">Riunioni</a></li>
          <li <?php if($page == 'magazzino') echo 'class="current"' ?>><a href="home.php?page=magazzino">Magazzino</a></li>
          <li><a href="http://www.piofiumefreddo.altervista.org" target="_blank">Protocollo</a></li>
	<li <?php if($page == 'contabilita') echo 'class="current"' ?>><a href="home.php?page=contabilita">Contabilita'</a></li>            
        </ul>
    </div>
    <div id="welcomeMessage">
    	<h1>Benvenuto in <?php echo $info2['nome'] . ' - ' . $info2['versione']; ?></h1>
    	<p><?php echo $info2['nome']; ?> nasce dall'esigenza di semplificare la gestione dei turni, il conteggio delle presenze dei volontari e la gestione dei magazzini con tutti i beni inventariati.</p>
    </div>